package puffer.starter.util;

import org.springframework.util.ResourceUtils;

import java.io.File;
import java.io.FileNotFoundException;


public class FileKit {
    //新建目录
    public static File getClassPath(String filePath) {
        try {
            return ResourceUtils.getFile("classpath:" + filePath);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
            return null;
        }
    }
}
